# coding=utf8

# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.


class IndexTemplateCronConf(object):

    def __init__(self, templateName, beginTime, cycle, indexPrefix, indexSuffixFormat, aheadOfDay, isAutoDelete, reserveOfDay, ):
        """
        :param templateName:  索引模板名称
        :param beginTime:  任务起始执行时间，遵循ISO8601标准，使用UTC时间，格式为：YYYY-MM-DDTHH:mm:ssZ
        :param cycle:  任务执行频率, day： 每天，week： 每周，month：每月
        :param indexPrefix:  索引前缀
        :param indexSuffixFormat:  索引后缀格式, "yyyy-MM-dd", "yyyy.MM.dd", "yyyy_MM_dd", "yyyyMMdd", "yyyyww", "yyyy-MM", "yyyy.MM", "yyyy_MM", "yyyyMM"
        :param aheadOfDay:  提前创建索引天数
        :param isAutoDelete:  是否开启自动删除索引
        :param reserveOfDay:  索引保留天数, 开启自动删除索引后生效
        """

        self.templateName = templateName
        self.beginTime = beginTime
        self.cycle = cycle
        self.indexPrefix = indexPrefix
        self.indexSuffixFormat = indexSuffixFormat
        self.aheadOfDay = aheadOfDay
        self.isAutoDelete = isAutoDelete
        self.reserveOfDay = reserveOfDay
